package com.kamistoat.meimeimall.meimeimallorder.enums;

public enum  OrderStatusEnum {
    /**
     * 订单状态
     */
    CREATING(0,"创建中"),
    WAITINGPAY(1,"待付款"),
    SENDED(2,"已发货"),
    RECIEVED(3,"已完成"),
    CANCELED(4,"已取消"),
    SERVICING(5,"售后中"),
    SERVICED(6,"售后完成"),

    /**
     * 确认收货
     */
    UNCONFIRMRECEIVED(0,"未确认收货"),
    CONFIRMRECEIVED(1,"已确认收货"),

    /**
     * 删除状态
     */
    UNDELETED(0,"未删除"),
    DELETED(1,"已删除"),

    /**
     * 订单流水状态
     */
    TRADE_SUCCESS(0, "TRADE_SUCCESS"),
    TRADE_FAIL(1, "TRADE_FAIL"),
    CLIENT_ROLLBACK(2, "CLIENT_ROLLBACK");

    private Integer code;
    private String msg;

    OrderStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
